
package com.oahcfly.chgame.egret.ui.property;

import com.badlogic.gdx.utils.ObjectMap;

/**
 * 
 * 按钮
 * @author haocao
 *
 */
public class ButtonProperty extends BaseUIProperty {

	public String downSource, upSource;

	public ButtonProperty (ObjectMap<String, String> attributes) {
		super(attributes);
		// skinName="@ButtonSkin('shoopicon1_png','shoopicon2_png')"
		String skinInfo = attributes.get("skinName");
		skinInfo = skinInfo.replace("@ButtonSkin", "").replace("(", "").replace(")", "").replace("\'", "");
		// shoopicon1_png,shoopicon2_png
		String[] tmp = skinInfo.split(",");
		downSource = tmp[1];
		upSource = tmp[0];
	}

}
